<HTML>
<HEAD>
<meta charset="UTF-8">
<title>com.vmadalin.commons.ui.extensions.androidx.lifecycle.LifecycleOwner - commons/ui</title>
<link rel="stylesheet" href="../../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">commons/ui</a>&nbsp;/&nbsp;<a href="../index.html">com.vmadalin.commons.ui.extensions</a>&nbsp;/&nbsp;<a href="./index.html">androidx.lifecycle.LifecycleOwner</a><br/>
<br/>
<h3>Extensions for androidx.lifecycle.LifecycleOwner</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="observe.html">observe</a></h4>
</td>
<td>
<p>Adds the given observer to the observers list within the lifespan of the given
owner. The events are dispatched on the main thread. If LiveData already has data
set, it will be delivered to the observer.</p>
<code><span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span> <span class="identifier">LifecycleOwner</span><span class="symbol">.</span><span class="identifier">observe</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.extensions$observe(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.LiveData((com.vmadalin.commons.ui.extensions.observe.T)), kotlin.Function1((com.vmadalin.commons.ui.extensions.observe.T, kotlin.Unit)))/liveData">liveData</span><span class="symbol">:</span>&nbsp;<span class="identifier">LiveData</span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.extensions$observe(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.LiveData((com.vmadalin.commons.ui.extensions.observe.T)), kotlin.Function1((com.vmadalin.commons.ui.extensions.observe.T, kotlin.Unit)))/observer">observer</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">T</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code><br/>
<code><span class="keyword">fun </span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span> <span class="identifier">LifecycleOwner</span><span class="symbol">.</span><span class="identifier">observe</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.extensions$observe(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.MutableLiveData((com.vmadalin.commons.ui.extensions.observe.T)), kotlin.Function1((com.vmadalin.commons.ui.extensions.observe.T, kotlin.Unit)))/liveData">liveData</span><span class="symbol">:</span>&nbsp;<span class="identifier">MutableLiveData</span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.extensions$observe(androidx.lifecycle.LifecycleOwner, androidx.lifecycle.MutableLiveData((com.vmadalin.commons.ui.extensions.observe.T)), kotlin.Function1((com.vmadalin.commons.ui.extensions.observe.T, kotlin.Unit)))/observer">observer</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">T</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
